package com.example.demo.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.demo.entity.Role;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 角色sql
 */
@Repository
public interface RoleMapper extends BaseMapper<Role> {
    /**
     * 获取一名用户所有的角色信息
     * @return
     */
    List<Role> getAllRolesByUserId(@Param("userId") String userId);
}
